import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('/get')
  async getHello(): Promise<any> {
    return await this.appService.getHello();
  }

  @Get('/insert')
  async insert(): Promise<any> {
    return await this.appService.insert();
  }

  @Get('/update')
  async update(): Promise<any> {
    return await this.appService.update();
  }

  @Get('/deleteOne')
  async deleteOne(): Promise<any> {
    return await this.appService.deleteOne();
  }
}
